/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-11-20 15:04:29
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-06-04 09:22:51
 * @FilePath: \cxl-driving-training\src\views\siteManagement\edit\twoConfig.ts
 */
import { DICT_DATA } from '@/utils/dict-data'
import { PropsFormpData } from '@/utils/interface'

export const twoListConfig: PropsFormpData[] = [
    [
        {
            key: 'schoolId',
            label: '所属驾校：',
            placeholder: '请选择所属驾校',
            value: '',
            type: 'select',
            width: 2,
            required: true,
            message: '请选择所属驾校',
            trigger: 'change',
            valid: true,
            options: []
        }
    ],
    [
        {
            key: 'name',
            label: '场地名称：',
            placeholder: '请输入',
            required: true,
            message: '请输入场地名称',
            value: '',
            type: 'text',
            width: 2,
            trigger: 'blur',
            maxlength: 10,
            valid: true
        }
    ],
    [
        {
            key: 'siteType',
            label: '场地类型：',
            placeholder: '请选择场地类型',
            value: '',
            type: 'select',
            width: 2,
            required: true,
            message: '请选择场地类型',
            trigger: 'change',
            valid: true,
            options: []
        }
    ],
    [
        {
            key: 'ownFlag',
            label: '是否自有：',
            placeholder: '请选择是否自有',
            value: '',
            type: 'select',
            width: 2,
            required: true,
            message: '请选择是否自有',
            trigger: 'change',
            valid: true,
            options: []
        }
    ],
    [
        {
            key: 'openHours',
            label: '营业时间：',
            placeholder: '请输入',
            required: true,
            message: '请输入营业时间',
            value: '',
            type: 'text',
            width: 2,
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'addressDetail',
            label: '场地地址：',
            placeholder: '请输入',
            required: true,
            message: '请输入场地地址',
            value: '',
            type: 'map',
            hasDetailed: true,
            width: 4,
            trigger: 'blur',
            options: [],
            latLng: [],
            valid: true,
            regionId: ''
        }
    ],
    [
        {
            key: 'siteMating',
            label: '周边配套：',
            placeholder: '请勾选周边配套',
            required: true,
            message: '请勾选周边配套',
            value: [],
            type: 'checkbox-group',
            width: 4,
            trigger: 'blur',
            valid: true,
            options: []
            // options: [...DICT_DATA.get('siteMating')]
        }
    ],
    [
        {
            key: 'siteVideo',
            label: '场地视频及展示图：',
            required: true,
            message: '请上传场地视频及展示图',
            value: [],
            type: 'file',
            width: 4,
            imageCount: 3,
            videoCount: 1,
            count: [],
            tagVisible: true,
            hint: '仅支持png、jpg格式，大小不超过5M，图片尺寸 750*562',
            trigger: 'blur',
            valid: true,
            dirType: 'train_site',
            sizeRatio: [10, 7.5]
        }
    ],
    [
        {
            key: 'equipmentIntroduction',
            label: '场地及设备介绍：',
            placeholder: '请输入',
            required: true,
            message: '请输入场地及设备介绍',
            value: '',
            type: 'tinymce',
            width: 4,
            trigger: 'blur',
            options: [],
            valid: true
        }
    ]
]
